package com.yu.waterstation.modules.system.service;

import com.yu.waterstation.common.handler.ServiceException;
import com.yu.waterstation.modules.system.pojo.SysUser;
import com.yu.waterstation.modules.system.pojo.dto.SysUserDTO;
import com.yu.waterstation.modules.system.pojo.vo.SysUserLoginVO;
import com.yu.waterstation.modules.system.pojo.vo.UpdatePasswordVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @date 2020-11-28 00:39:54
 */
public interface SysUserService {
    /**
     * 登录
     *
     * @param loginVo
     * @return SysUserDTO
     * @throws Exception
     */
    SysUserDTO login(SysUserLoginVO loginVo, HttpServletRequest request) throws Exception;

    /**
     * 修改密码
     * @return
     */
    int updatePassword(Integer userId, UpdatePasswordVo params) throws ServiceException;

}

